define({ "api": [
  {
    "type": "delete",
    "url": "/authorizations",
    "title": "删除当前token，登出",
    "description": "<p>删除当前token (delete current token)</p>",
    "group": "Auth",
    "permission": [
      {
        "name": "jwt"
      }
    ],
    "version": "0.1.0",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 204 No Content",
          "type": "json"
        }
      ]
    },
    "filename": "App/Http/Controllers/Api/AuthController.php",
    "groupTitle": "Auth",
    "name": "DeleteAuthorizations"
  },
  {
    "type": "post",
    "url": "/auth/login",
    "title": "创建一个token (create a token)",
    "description": "<p>创建一个token (create a token)</p>",
    "group": "Auth",
    "permission": [
      {
        "name": "jwt"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Email",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "version": "0.1.0",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 201 Created\n{\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbHVtZW4tYXBpLWRlbW8uZ\n                 GV1L2FwaS9hdXRob3JpemF0aW9ucyIsImlhdCI6MTQ4Mzk3NTY5MywiZXhwIjoxNDg5MTU5NjkzLCJuYmYi\n                 OjE0ODM5NzU2OTMsImp0aSI6ImViNzAwZDM1MGIxNzM5Y2E5ZjhhNDk4NGMzODcxMWZjIiwic3ViIjo1M30.\n                 hdny6T031vVmyWlmnd2aUr4IVM9rm2Wchxg5RX_SDpM\",\n        \"expired_at\": \"2017-03-10 15:28:13\",\n        \"refresh_expired_at\": \"2017-01-23 15:28:13\"\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 401\n{\n  \"error\": \"用户面密码错误\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "App/Http/Controllers/Api/AuthController.php",
    "groupTitle": "Auth",
    "name": "PostAuthLogin"
  },
  {
    "type": "put",
    "url": "/authorizations",
    "title": "刷新token，如果开启黑名单，以前的token便会失效。值得注意的是用上面的getToken再获取一次Token并不算做刷新，两次获得的Token是并行的，即两个都可用。",
    "description": "<p>刷新token</p>",
    "group": "Auth",
    "permission": [
      {
        "name": "JWT"
      }
    ],
    "version": "1.0.0",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "Authorization",
            "description": "<p>用户旧的jwt-token, value已Bearer开头</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Header-Example:",
          "content": "{\n  \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6XC9cL21vYmlsZS5kZWZhcmEuY29tXC9hdXRoXC90b2tlbiIsImlhdCI6IjE0NDU0MjY0MTAiLCJleHAiOiIxNDQ1NjQyNDIxIiwibmJmIjoiMTQ0NTQyNjQyMSIsImp0aSI6Ijk3OTRjMTljYTk1NTdkNDQyYzBiMzk0ZjI2N2QzMTMxIn0.9UPMTxo3_PudxTWldsf4ag0PHq1rK8yO9e5vqdwRZLY\"\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbHVtZW4tYXBpLWRlbW8uZGV1L2FwaS9hdXRob3JpemF0aW9ucyIsImlhdCI6MTQ4Mzk3NTY5MywiZXhwIjoxNDg5MTU5NjkzLCJuYmYiOjE0ODM5NzU2OTMsImp0aSI6ImViNzAwZDM1MGIxNzM5Y2E5ZjhhNDk4NGMzODcxMWZjIiwic3ViIjo1M30.hdny6T031vVmyWlmnd2aUr4IVM9rm2Wchxg5RX_SDpM\",\n        \"expired_at\": \"2017-03-10 15:28:13\",\n        \"refresh_expired_at\": \"2017-01-23 15:28:13\"\n    }\n}",
          "type": "json"
        }
      ]
    },
    "filename": "App/Http/Controllers/Api/AuthController.php",
    "groupTitle": "Auth",
    "name": "PutAuthorizations"
  },
  {
    "type": "get",
    "url": "/app/paper/list",
    "title": "获取路由权限列表",
    "description": "<p>获取路由权限列表</p>",
    "group": "permission",
    "permission": [
      {
        "name": "none"
      }
    ],
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Int",
            "optional": true,
            "field": "limit",
            "description": "<p>每页显示条数</p>"
          },
          {
            "group": "Parameter",
            "type": "Int",
            "optional": true,
            "field": "type",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": true,
            "field": "name",
            "description": "<p>名称</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "  HTTP/1.1 200 OK\n{\n    \"data\": [\n        {\n            \"id\": 364,\n            \"name\": \"名称\",\n        },\n        {\n            \"id\": 364,\n            \"name\": \"名称\",\n        }\n    ],\n    \"meta\": {\n    \"pagination\": {\n        \"total\": 2,\n        \"count\": 2,\n        \"per_page\": 15,\n        \"current_page\": 1,\n        \"total_pages\": 1,\n        \"links\": null\n    }\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response:",
          "content": "HTTP/1.1 400 Bad Request",
          "type": "json"
        }
      ]
    },
    "filename": "App/Http/Controllers/Api/Permission/PermissionController.php",
    "groupTitle": "permission",
    "name": "GetAppPaperList"
  },
  {
    "type": "get",
    "url": "/user/current",
    "title": "获取当前登录用户基础信息",
    "description": "<p>获取当前登录用户基础信息</p>",
    "group": "user",
    "permission": [
      {
        "name": "JWT"
      }
    ],
    "version": "0.1.0",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "    HTTP/1.1 200 OK\n{\n     \"data\": {\n         \"id\": 7,\n         \"username\": \"sss\",\n         \"realname\": \"admin\",\n         \"mobile\": \"15928642015\",\n         \"email\": \"\",\n         \"user_type\": 2,\n         \"avatar\": \"http://attachment-ctjypt-test.oss-cn-shanghai.aliyuncs.com/user/avatar/2018328/7b8c2220-2210-4c58-b7ee-488d8c536dcajpg?logo_id=1071\",\n         \"gender\": 0,\n         \"birthday\": null,\n         \"city\": \"\",\n         \"address\": \"天津市 河东区 东新街道 asdf\",\n         \"school_id\": 0,\n         \"school_name\": \"\",\n         \"speciality\": \"\",\n         \"signature\": null,\n         \"status\": 0,\n         \"created_at\": \"2017-12-05 17:56:37\",\n         \"updated_at\": \"2018-03-28 17:16:52\",\n     }\n}",
          "type": "json"
        }
      ]
    },
    "filename": "App/Http/Controllers/Api/UserController.php",
    "groupTitle": "user",
    "name": "GetUserCurrent"
  }
] });
